# $Id: PKGBUILD 67742 2012-03-14 10:09:48Z giovanni $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Roman G. <chesercat@gmail.com>

pkgname=pydb
pkgver=1.26
pkgrel=2
pkgdesc="Pydb - Extended Python Debugger"
arch=('any')
url="http://bashdb.sourceforge.net/pydb/"
license=('GPL')
depends=('python2')
source=(http://downloads.sourceforge.net/bashdb/${pkgname}-${pkgver}.tar.gz)
md5sums=('a9ebe27995afef2c0f7b9d6f3a722a95')
sha1sums=('2c9ce476645f172d8bcdc1cc35dc0609ecdb2fd7')

build() {
  cd "${srcdir}/$pkgname-$pkgver"
  ./configure --prefix=/usr --with-python=/usr/bin/python2
  make
}

package() {
  cd "${srcdir}/$pkgname-$pkgver"
  make DESTDIR="${pkgdir}" install
  ln -sf /usr/lib/python2.7/site-packages/pydb/pydb.py "${pkgdir}/usr/bin/pydb"
}
